package com.octopus.yangj.util;

import java.util.ArrayList;
import java.util.List;

public enum EventStatus {
	
	CREATED 		("created"),
	ASSIGNED 		("assigned"),
	EXECUTED 		("executed"),
	VALIDATED 		("validated"),
	INVALIDATED 	("invalidated"),
	CLOSED 			("closed");
	
	private String status;
	
	private EventStatus(String status){
		this.status = status;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	public static List<EventStatus> getAllStatus(){
		List<EventStatus> list = new ArrayList<EventStatus>();
		list.add(CREATED);
		list.add(ASSIGNED);
		list.add(EXECUTED);
		list.add(VALIDATED);
		list.add(INVALIDATED);
		list.add(CLOSED);
		return list;
	}

}
